Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit e52f3d4

Browse files
author
Sean Stares
committed
fixed cypress test
1 parent 1fb42cc commit e52f3d4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

config/webpack/webpack.shared.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ module.exports = {
156156
port: 8080
157157
},
158158
output: {
159-
path: path.resolve(rootDir, 'dist'),
160-
filename: 'js/[name].js'
159+
chunkFilename: '[name].bundle.js',
160+
filename: '[name].bundle.js',
161+
path: OUTPUT_PATH,
162+
publicPath: PUBLIC_PATH
161163
},
162164
module: {
163165
rules: [

cypress/integration/browse-projects-direct-nav.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ describe('browse projects page tests (direct nav)', () => {
1010
})
1111

1212
it('properly filters projects by language', () => {
13-
cy.get('input[value="HTML"]')
13+
cy.get('#language .moreLessToggle')
14+
.click({ force: true })
15+
.get('input[value="HTML"]')
1416
.check({ force: true })
1517
// using wait not ideal: https://docs.cypress.io/guides/references/best-practices.html#Unnecessary-Waiting
1618
// this will have to be refactored but was the only way I could get the test to pass

0 commit comments

Comments
 (0)