Uname:Windows NT WIN-HN0MTSF2AF1 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) AMD64

403WebShell
403Webshell
Server IP : 172.67.191.88  /  Your IP : 104.23.243.204
Web Server : Microsoft-IIS/7.5
System : Windows NT WIN-HN0MTSF2AF1 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) AMD64
User : IWPD_11(bayt-altogg) ( 0)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Inetpub/vhosts/bayt-altoggar.com/httpdocs/wp-content/plugins/advanced-ads/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Inetpub/vhosts/bayt-altoggar.com/httpdocs/wp-content/plugins/advanced-ads//playwright.config.ts
import fs from 'node:fs';
import path from 'node:path';
import { defineConfig } from '@playwright/test';

// Load external config file.
let externalConfig = {};
const jsonPath = path.resolve( './dev.config.json' );

if ( fs.existsSync( jsonPath ) ) {
	externalConfig = JSON.parse( fs.readFileSync( jsonPath, 'utf8' ) );
}

export default defineConfig( {
	name: 'Advanced Ads',
	testDir: 'tests/Acceptance',
	use: {
		baseURL: 'http://localhost:8888',
		browserName: 'chromium',
		...externalConfig.use,
	},
	reporter: 'html',
	projects: [
		// ----------------------------------------------------
		// Setup project (creates auth.json for wp-admin login)
		// ----------------------------------------------------
		{
			name: 'setup',
			testMatch: 'tests/Acceptance/Fixtures/auth.setup.ts',
		},

		// ----------------------------------------------------
		// Backend (wp-admin) tests
		// ----------------------------------------------------
		{
			name: 'admin',
			testDir: 'tests/Acceptance/Admin',
			use: { storageState: 'auth.json' },
			dependencies: [ 'setup' ],
			testIgnore: '**/Licenses/**',
		},

		{
			name: 'admin-ads',
			testDir: 'tests/Acceptance/Admin/Ads',
			use: { storageState: 'auth.json' },
			dependencies: [ 'setup' ],
		},

		{
			name: 'admin-groups',
			testDir: 'tests/Acceptance/Admin/Groups',
			use: { storageState: 'auth.json' },
			dependencies: [ 'admin-ads' ],
		},

		{
			name: 'admin-placements',
			testDir: 'tests/Acceptance/Admin/Placements',
			use: { storageState: 'auth.json' },
			dependencies: [ 'admin-groups' ],
		},

		{
			name: 'admin-licenses',
			testDir: 'tests/Acceptance/Admin/Licenses',
			use: { storageState: 'auth.json' },
			dependencies: [ 'setup' ],
		},

		{
			name: 'admin-support',
			testDir: 'tests/Acceptance/Admin/Support',
			use: { storageState: 'auth.json' },
			dependencies: [ 'setup' ],
		},

		// ----------------------------------------------------
		// Frontend tests
		// ----------------------------------------------------
		{
			name: 'frontend',
			testDir: 'tests/Acceptance/Frontend',
			use: { storageState: 'auth.json' },
			dependencies: [ 'setup' ],
		},
		{
			name: 'frontend-auth',
			testDir: 'tests/Acceptance/Frontend/Auth',
			use: { storageState: 'auth.json' },
			dependencies: [ 'setup' ],
		},
	],
} );

Youez - 2016 - github.com/yon3zu
LinuXploit