Skip to content

Commit

Permalink
Update changes to pass test due to new changes in 0.10.20 (#5)
Browse files Browse the repository at this point in the history
* Update path name to oobee

* Fix the failing test due to changes to decode function in oobee

* Fix test failing only on docker for url with .rss

Previously header was always set to text/html

---------

Co-authored-by: Wilson WeeSheng Khoo <[email protected]>
  • Loading branch information
WilsonkwSheng and Wilson WeeSheng Khoo authored Jan 6, 2025
1 parent a354548 commit 0fca159
Show file tree
Hide file tree
Showing 6 changed files with 752 additions and 363 deletions.
12 changes: 9 additions & 3 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'cypress'
import purpleA11yInit from '@govtechsg/purple-hats'
import purpleA11yInit from '@govtechsg/oobee'
import mochawesome from 'cypress-mochawesome-reporter/plugin'
import { fileURLToPath } from 'url'
import { dirname, resolve } from 'path'
Expand Down Expand Up @@ -146,7 +146,7 @@ const cliOptionsCustomFlow = {
h: 'no',
}

const purpleA11yPath = 'node_modules/@govtechsg/purple-hats'
const purpleA11yPath = 'node_modules/@govtechsg/oobee'
const purpleA11yErrorsTxtPath = `${purpleA11yPath}/errors.txt`

const getBlackListedPatterns = (
Expand Down Expand Up @@ -229,7 +229,13 @@ export default defineConfig({
config.env.localTxtFileDirectory = localTxtFileDirectory

mochawesome(on)
on('task', {
on('task', {
log(message) {
// Example:
// cy.task('log', 'This will be output to the terminal')
console.log('consoleLog:', message)
return null;
},
getPurpleA11yScripts(): string {
return purpleA11y.getScripts()
},
Expand Down
Loading

0 comments on commit 0fca159

Please sign in to comment.