Test log: https://qa.drupal.org/pifr/test/115004

The tests pass for me on my machine, but fail for the Drupal test bots. Any ideas on why this is?

Comments

fizk created an issue. See original summary.

fizk’s picture

Project: Nodequeue » Drupal.org Integration Testing
Version: 7.x-2.x-dev »

Hi, for some reason there are two tests that fail on the Drupal.org test bots but pass on my local machine.

fizk’s picture

Here's the test code:


function testNodequeueAddQueue() {
    $this->drupalLogin($this->user);

    // make sure we can access the administration page
    $this->drupalGet('admin/structure/nodequeue');
    $this->assertText('Add simple queue', t('"Add simple queue" link is present.'), t('Nodequeue'));
    $this->assertText('Settings', t('"Settings" link is present.'), t('Nodequeue'));
    $this->assertText('No nodequeues exist.', t('Nodequeue table is empty.'), t('Nodequeue'));

    // create a nodequeue...
    $edit = array(
      'title'        => 'Testqueue',
      'name'         => 'testqueue',
      'size'         => 10,
      'link'         => 'Add to %subqueue',
      'link_remove'  => 'Remove from %subqueue',
      'types[article]' => 'article',
      'types[page]'  => 'page',
    );
    $this->drupalPost('admin/structure/nodequeue/add/nodequeue', $edit, 'Submit');

    // ...and make sure we can add a node to it
    $node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1));
/*
    $this->drupalGet('node/'. $node->nid);
    $this->assertRaw('<a href="' . url('node/1/nodequeue', array('absolute' => true)) . '">Nodequeue', t('Nodequeue tab is present.'), t('Nodequeue'));
*/

    // add the node to the queue
    $this->drupalGet('node/'. $node->nid .'/nodequeue');
    $this->assertText('Testqueue', t('Nodequeue is shown in table.'), t('Nodequeue'));
    $this->assertText('Queue empty', t('Nodequeue is currently empty.'), t('Nodequeue'));
    $this->clickLink('Add to queue');
    $this->assertRaw('class="nodequeue-in-queue">1', t('Nodequeue table reports correct number of elements in queue.'), t('Nodequeue'));

    // try sorting by queue size
    $this->drupalGet('admin/structure/nodequeue');
    $this->clickLink('Max nodes');

    // FAILING
    $this->assertRaw('Max nodes<img typeof="foaf:Image" src="' . url('misc/arrow-desc.png', array('absolute' => true)) . '"', t('Nodequeue table is sorted by max rows descending.'), t('Nodequeue'));

    $this->drupalGet('admin/structure/nodequeue');
    $this->clickLink('Subqueues');

    // FAILING
    $this->assertRaw('Subqueues<img typeof="foaf:Image" src="' . url('misc/arrow-desc.png', array('absolute' => true)) . '"', t('Nodequeue table is sorted by subqueues descending.'), t('Nodequeue'));
  }
fizk’s picture

Project: Drupal.org Integration Testing » Drupal.org Testbots
Component: Code » unexplained test failure
fizk’s picture

Title: Two tests fail for Drupal.org test bots » Two tests fail for nodequeue module
Mixologic’s picture

Status: Active » Closed (outdated)

Appears as though these tests are passing on the latest nodequeue branch. closing as outdated.