403Webshell
Server IP : 66.29.153.156  /  Your IP : 216.73.217.22
Web Server : LiteSpeed
System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User : lastyfjz ( 1521)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/lastyfjz/././unicitys.com/wp-content/plugins/extendify/tests/playwright/Launch/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/lastyfjz/././unicitys.com/wp-content/plugins/extendify/tests/playwright/Launch/launch.spec.ts
// e2e:disabled
import { expect, test } from '../fixtures';

type OptionResponse = { success: boolean; data: string | null };

test.beforeEach(async ({ requestUtils, admin }) => {
	await requestUtils.login();
	// wp-playground's default admin user matches `admin_email`, so the first
	// /wp-admin/ visit with no `extendify_launch_loaded` option seeded fires
	// AdminPageRouter::redirectOnce — it writes `extendify_attempted_redirect`
	// synchronously in PHP and redirects to ?page=extendify-launch, where the
	// React mount writes `extendify_launch_loaded` via POST /launch/options.
	await admin.visitAdminPage('index.php', '');
});

test('Tests the Launch redirect and db value', async ({
	page,
	requestUtils,
}) => {
	await expect(page).toHaveURL(/admin\.php\?page=extendify-launch/);

	await expect
		.poll(async () => {
			const res = await requestUtils.rest<OptionResponse>({
				path: '/extendify/v1/launch/options?option=extendify_attempted_redirect',
			});
			return res.data ?? '';
		})
		.toMatch(/\d{4}-\d{2}-\d{2}/);

	await expect
		.poll(async () => {
			const res = await requestUtils.rest<OptionResponse>({
				path: '/extendify/v1/launch/options?option=extendify_launch_loaded',
			});
			return res.data ?? '';
		})
		.toMatch(/\d{4}-\d{2}-\d{2}/);
});

Youez - 2016 - github.com/yon3zu
LinuXploit