Skip to content

Commit

Permalink
ci: Update all the regression tests for the latest pre-prod content
Browse files Browse the repository at this point in the history
Merge pull request #266 from DFE-Digital/fix/update-regression-tests
  • Loading branch information
killij authored Sep 18, 2023
2 parents 147f8e9 + 46c5c3e commit e14b9da
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test.describe('Experienced Practitioners', () => {
['Pathway 1: practice supervisors', '/pathway-1', 'Pathway 1: practice supervisors'],
['Pathway 2: middle managers', '/pathway-2', 'Pathway 2: middle managers'],
['View all programmes', '/development-programmes', 'Child and family social work development programmes'],
['Explore all roles', '/explore-roles', 'Roles in child and family social work'],
['Explore all roles', '/explore-roles', 'Explore roles in child and family social work'],
]

for (const link of links) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test.describe('Leaders', () => {
['Upon: new directors programme', '/new-directors-programme', 'Upon: new directors programme'],
['Pathway 4: practice leaders', '/pathway-4', 'Pathway 4: practice leaders'],
['View all programmes', '/development-programmes', 'Child and family social work development programmes'],
['Explore all roles', '/explore-roles', 'Roles in child and family social work'],
['Explore all roles', '/explore-roles', 'Explore roles in child and family social work'],
]

for (const link of links) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('Managers', () => {
['Pathway 2: middle managers', '/pathway-2', 'Pathway 2: middle managers'],
['Pathway 3: heads of service', '/pathway-3', 'Pathway 3: heads of service'],
['View all programmes', '/development-programmes', 'Child and family social work development programmes'],
['Explore all roles', '/explore-roles', 'Roles in child and family social work'],
['Explore all roles', '/explore-roles', 'Explore roles in child and family social work'],
]

for (const link of links) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test.describe('Pathway 2: middle managers', () => {
const links = [
['Frontline', 'https://thefrontline.org.uk/develop-your-career/pathways-programme/'],
['Frontline\'s network of leaders', 'https://thefrontline.org.uk/develop-your-career/frontline-fellowship/'],
['Find out more about Pathway 2 including how to apply', 'https://thefrontline.org.uk/develop-your-career/pathways-programme/'],
//['Find out more about Pathway 2 including how to apply', 'https://thefrontline.org.uk/develop-your-career/pathways-programme/'], // Currently closed
['Social work post-qualifying standards', 'https://www.gov.uk/government/publications/knowledge-and-skills-statements-for-child-and-family-social-work'],
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('Practitioners', () => {
['Assessed and supported year in employment (ASYE)', '/asye', 'Assessed and supported year in employment \\(ASYE\\)'],
['View all programmes', '/development-programmes', 'Child and family social work development programmes'],
['Develop your social work practice', '/develop-social-work-practice', 'Develop your social work practice'],
['Explore all roles', '/explore-roles', 'Roles in child and family social work'],
['Explore all roles', '/explore-roles', 'Explore roles in child and family social work'],
]

for (const link of links) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('Senior managers', () => {
['Pathway 3: heads of service', '/pathway-3', 'Pathway 3: heads of service'],
['Pathway 4: practice leaders', '/pathway-4', 'Pathway 4: practice leaders'],
['View all programmes', '/development-programmes', 'Child and family social work development programmes'],
['Explore all roles', '/explore-roles', 'Roles in child and family social work'],
['Explore all roles', '/explore-roles', 'Explore roles in child and family social work'],
]

for (const link of links) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from '@playwright/test'

test.describe('Child Protection & Family Safeguarding', () => {
test.describe.skip('Child Protection & Family Safeguarding', () => {
test('User journey via Explore menu @journey', async ({ page }) => {
await page.goto('/')
await page.getByLabel('Menu').getByRole('link', { name: 'Explore roles', exact: true }).click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ test.describe('External links @external', () => {

test.describe('Practice supervisor', () => {
const links = [
['enhanced background checks', 'https://www.gov.uk/criminal-record-checks-apply-role'],
['Find a job service', 'https://findajob.dwp.gov.uk/'],
]

Expand Down Expand Up @@ -153,7 +152,6 @@ test.describe('External links @external', () => {

test.describe('Principal social worker', () => {
const links = [
['enhanced background checks', 'https://www.gov.uk/criminal-record-checks-apply-role'],
['Find a job service', 'https://findajob.dwp.gov.uk/'],
]

Expand All @@ -172,7 +170,6 @@ test.describe('External links @external', () => {

test.describe('Service manager', () => {
const links = [
['enhanced background checks', 'https://www.gov.uk/criminal-record-checks-apply-role'],
['Find a job service', 'https://findajob.dwp.gov.uk/'],
]

Expand All @@ -191,7 +188,6 @@ test.describe('External links @external', () => {

test.describe('Head of service', () => {
const links = [
['enhanced background checks', 'https://www.gov.uk/criminal-record-checks-apply-role'],
['Find a job service', 'https://findajob.dwp.gov.uk/'],
]

Expand All @@ -210,7 +206,6 @@ test.describe('External links @external', () => {

test.describe('Assistant director', () => {
const links = [
['enhanced background checks', 'https://www.gov.uk/criminal-record-checks-apply-role'],
['Find a job service', 'https://findajob.dwp.gov.uk/'],
]

Expand All @@ -229,7 +224,6 @@ test.describe('External links @external', () => {

test.describe('Director of children\'s services', () => {
const links = [
['enhanced background checks', 'https://www.gov.uk/criminal-record-checks-apply-role'],
['Find a job service', 'https://findajob.dwp.gov.uk/'],
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test.describe('Homepage', () => {
test.describe('Useful information', () => {
const links = [
['DfE funded programmes', '/development-programmes', 'Child and family social work development programmes'],
['Explore roles', '/explore-roles', 'Roles in child and family social work'],
['Explore roles', '/explore-roles', 'Explore roles in child and family social work'],
]

for (const link of links) {
Expand Down

0 comments on commit e14b9da

Please sign in to comment.