Skip to content

Commit 342b0a2

Browse files
committed
set secret on install
1 parent 3687da1 commit 342b0a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/cypress/integration/api/com_weblinks/Weblinks.cy.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ describe('Test that weblinks API endpoint', () => {
22
afterEach(() => cy.task('queryDB', 'DELETE FROM #__weblinks WHERE title LIKE "%automated test weblink%"'));
33

44
it('can deliver a list of weblinks', () => {
5-
// Update to the correct secret for the API tests because of the bearer token
6-
cy.config_setParameter('secret', 'tEstValue');
75
cy.db_enableExtension('1', 'plg_webservices_weblinks');
86
cy.db_createWeblink({ title: 'automated test weblink' })
97
.then(() => cy.api_get('/weblinks'))

tests/cypress/integration/install/install.cy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ describe('Install Joomla and Weblinks package', () => {
88
cy.disableStatistics()
99
cy.setErrorReportingToDevelopment()
1010
cy.doAdministratorLogout()
11+
// Update to the correct secret for the API tests because of the bearer token
12+
cy.config_setParameter('secret', 'tEstValue');
1113
})
1214
})

0 commit comments

Comments
 (0)