Contents

Reordering of Cabinet ministers and Organisations

As a GDS editor I want to be able to able to view and reorder Cabinet minsters and Organisations So that I can reflect Cabinet reshuffles

Background:

  • Given I am a GDS editor

Scenario: Previewing changes to the ministers index page during reshuffle

  • Given reshuffle mode is on
  • When I visit the Cabinet ministers order page
  • Then I should see a preview link to the ministers index page

Scenario: No preview to the ministers index page when not in reshuffle mode

  • Given reshuffle mode is off
  • When I visit the Cabinet ministers order page
  • Then I should not see a preview link to the ministers index page

Scenario: Reordering Cabinet ministers

  • Given there are multiple Cabinet minister roles with active appointments
  • When I visit the Cabinet ministers order page
  • And I click the reorder link in the "#cabinet_minister" tab
  • And I set the order of the roles to:
    nameorder
    Role 20
    Role 11
  • Then the roles in the "#cabinet_minister" tab should be in the following order:
    name
    Role 2
    Role 1

Scenario: Reordering Also attends cabinet roles

  • Given there are multiple Also attends cabinet roles
  • When I visit the Cabinet ministers order page
  • And I click the reorder link in the "#also_attends_cabinet" tab
  • And I set the order of the roles to:
    nameorder
    Role 20
    Role 11
  • Then the roles in the "#also_attends_cabinet" tab should be in the following order:
    name
    Role 2
    Role 1

Scenario: Reordering Whip roles

  • Given there are multiple Whip roles
  • When I visit the Cabinet ministers order page
  • And I click the reorder link in the "#whips" tab
  • And I set the order of the roles to:
    nameorder
    Role 20
    Role 11
  • Then the roles in the "#whips" tab should be in the following order:
    name
    Role 2
    Role 1

Scenario: Reordering Ministerial organisations

  • Given there are multiple organisations with ministerial ordering
  • When I visit the Cabinet ministers order page
  • And I click the reorder link in the "#organisations" tab
  • And I set the order of the organisations to:
    nameorder
    Org 20
    Org 11
  • Then the organisations in the "#organisations" tab should be in the following order:
    name
    Org 2
    Org 1

Source: features/cabinet-ministers.feature at commit 59fc7c54, Whitehall (MIT license).