Skip to content

Commit 3687da1

Browse files
committed
secret test for bearer token
1 parent 8e01b4e commit 3687da1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ 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');
57
cy.db_enableExtension('1', 'plg_webservices_weblinks');
68
cy.db_createWeblink({ title: 'automated test weblink' })
79
.then(() => cy.api_get('/weblinks'))

0 commit comments

Comments
 (0)