Skip to content

Instantly share code, notes, and snippets.

View jaspreetaxelerant's full-sized avatar

jaspreetaxelerant

View GitHub Profile
#0 d8 site: node/1 comment form with full html input format by uid0.
<script>alert('XSS')</script>
_________________________________________________________________________________________________
#1 d8 site: node/1 comment form with full html input format by uid0.
It will move the site into maintenance mode
<script>setTimeout(function(){
jQuery.get('/drupal_test/admin/config/development/maintenance',
function (data, status) {
if (status == 'success') {
@test2
Feature: Login and Create content for BehatSite
As a Drupal user
I need to be able to edit Article and Basic Page
Background: Login process for Behat
Given I go to "user"
When I fill in "edit-name" with "behat_admin_user"
And I fill in "edit-pass" with "behat_admin_user"
And I press the "edit-submit" button
@test1
Feature: Login and Create content for BehatSite
As a Drupal user
I need to be able to create Article and Basic Page
Background: Login process for Behat
Given I go to "user"
When I fill in "edit-name" with "behat_admin_user"
And I fill in "edit-pass" with "behat_admin_user"
And I press the "edit-submit" button
#!/usr/bin/env php
<?php
//Read CSV
//Open the file with correct path.
$fileHandle = fopen("/localpath/sites.csv", "r");
//Loop through the CSV rows.
while (($row = fgetcsv($fileHandle, 0, ",")) !== FALSE) {
//Dump out the row for the sake of clarity.
default:
suites:
default:
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\MinkContext
filters:
tags: "@test1,@test2,@test3,@test4,@test5"
formatters:
html:
BehatSite1,dev-behatsite1.pantheonsite.io
BehatSite2,dev-behatsite2.pantheonsite.io
BehatSite3,dev-behatsite3.pantheonsite.io
BehatSite4,dev-behatsite4.pantheonsite.io
#!/usr/bin/env php
<?php
//Read CSV
//Open the file with correct path.
$fileHandle = fopen("/localpath/sites.csv", "r");
//Loop through the CSV rows.
while (($row = fgetcsv($fileHandle, 0, ",")) !== FALSE) {
//Dump out the row for the sake of clarity.
{
"require": {
"behat/behat": "~3.0",
"drupal/drupal-extension": "~3.0",
"behat/mink-goutte-driver": "*",
"behat/mink-browserkit-driver": "*",
"behat/mink-extension": "2.2",
"behat/mink-selenium2-driver": "*",
"behat/mink": "*",
"drush-ops/behat-drush-endpoint": "^8"