Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update all the regression tests for the latest pre-prod content #266

Merged
merged 5 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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