Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

984 run fewer tests on webkit #987

Closed
wants to merge 13 commits into from
Closed
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
1 change: 0 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
uses: cypress-io/github-action@v5
with:
browser: ${{ matrix.containers }}
start: npm run federalist

- uses: actions/upload-artifact@v3
if: failure ()
Expand Down
1 change: 0 additions & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = defineConfig({
e2e: {
baseUrl: "https://benefits-tool-demo.usa.gov/",
specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
testIsolation: false,
supportFile: false,
},
experimentalWebKitSupport: true,
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/accordions.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as ES_BENEFITS_SSA_RETIREMENT_BENEFITS_CHILD_DISABLED from "../../../lo
import * as EN_LIFE_EVENTS_DISABILITY from "../../../locales/en/life-events/disability.json"
import * as EN_LIFE_EVENTS_RETIREMENT from "../../../locales/en/life-events/retirement.json"

describe("Validate opening and closing of accordion cards", () => {
describe("Validate opening and closing of accordion cards", { browser: "!webkit" }, () => {
beforeEach(() => {
cy.visit("/")
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/footer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const footerContentES = ES_DATA.footer
const footerContentEN = EN_DATA.footer
const sitePages = SITE_PAGES_DATA.sitePages

describe("Footer Tests", () => {
describe("Footer Tests", { browser: "!webkit" }, () => {
sitePages.forEach((sitePage) => {
it(`Validate footer content mapping in ${sitePage.name}`, () => {
cy.visit({ url: sitePage.route })
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/ui/header.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { pages } from "../../support/page-objects/pages.js"

describe("Header Tests", () => {
before(() => {
describe("Header Tests", { browser: "!webkit" }, () => {
beforeEach(() => {
cy.visit("/")
})

Expand Down
8 changes: 6 additions & 2 deletions cypress/e2e/ui/links.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ import * as SITE_PAGES_DATA from "../../fixtures/site-pages.json"

const sitePages = SITE_PAGES_DATA.sitePages

describe("Verify correct status code when user navigates links", () => {
const excludedlinks = ["https://www.instagram.com/usagov/"]

describe("Verify correct status code when user navigates links", { browser: "chrome" }, () => {
sitePages.forEach((sitePage) => {
it(`Verify success status code response for links in ${sitePage.name} `, () => {
cy.visit({ url: sitePage.route })
cy.get("a[href]").each((link) => {
cy.request(link.prop("href"))
if (excludedlinks.indexOf(link.prop("href")) == -1) {
cy.request(link.prop("href"))
}
})
})
})
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/ui/open-all-close-all-button.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as SITE_PAGES_DATA from "../../fixtures/site-pages.json"

const sitePages = SITE_PAGES_DATA.sitePages

describe("Validate Open All button functionality", () => {
describe("Validate Open All button functionality", { browser: "!webkit" }, () => {
sitePages.forEach((sitePage) => {
it(`Verify Open All button should open all accordion cards in ${sitePage.name}`, () => {
cy.visit({ url: sitePage.route })
Expand All @@ -17,7 +17,7 @@ describe("Validate Open All button functionality", () => {
})
})

describe("Validate Close All button functionality", () => {
describe("Validate Close All button functionality", { browser: "!webkit" }, () => {
sitePages.forEach((sitePage) => {
it(`Verify Close All button should close all accordion cards in ${sitePage.name}`, () => {
cy.visit({ url: sitePage.route })
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/ui/print-selections.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { pages } from "../../support/page-objects/pages.js"
import * as EN_CRITERIA from "../../../locales/en/criteria.json"

describe("Select criteria and print selections", () => {
before(() => {
describe("Select criteria and print selections", { browser: "!webkit" }, () => {
beforeEach(() => {
cy.visit("/")
})

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/sort-benefits-list.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { pages } from "../../support/page-objects/pages.js"
import * as EN_CRITERIA from "../../../locales/en/criteria.json"
import * as EN_BENEFITS_COVID_19 from "../../../locales/en/benefits/fema-covid-19-funeral-assistance.json"

describe("Sort benefits accordion list using Covid 19 filter", () => {
describe("Sort benefits accordion list using Covid 19 filter", { browser: "!webkit" }, () => {
beforeEach(() => {
cy.visit("/")
})
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/ui/ui-render-content.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as EN_LIFE_EVENTS_RETIREMENT from "../../../locales/en/life-events/reti

const sitePages = SITE_PAGES_DATA.sitePages

describe("Verify UI is rendering content correctly", () => {
describe("Verify UI is rendering content correctly", { browser: "!webkit" }, () => {
sitePages.forEach((sitePage) => {
it(`Verify ${sitePage.name} is rendering content correctly instead of dot notation value on checkbox labels`, () => {
cy.visit({ url: sitePage.route })
Expand All @@ -25,7 +25,7 @@ describe("Verify UI is rendering content correctly", () => {
})
})

describe("Verify Benefits Card content is displaying correctly", () => {
describe("Verify Benefits Card content is displaying correctly", { browser: "!webkit" }, () => {
beforeEach(() => {
cy.visit("/")
})
Expand Down
Loading
Loading