File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
tests/System/integration/api/com_newsfeed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change 1
1
describe ( 'Test that newsfeed categories API endpoint' , ( ) => {
2
+ afterEach ( ( ) => cy . task ( 'queryDB' , "DELETE FROM #__categories where title = 'automated test feed category'" ) ) ;
2
3
it ( 'can deliver a list of categories' , ( ) => {
3
4
cy . db_createCategory ( { title : 'automated test category' , extension : 'com_newsfeeds' } )
4
5
. then ( ( id ) => cy . db_createNewsFeed ( { name : 'automated test feed' , catid : id } ) )
Original file line number Diff line number Diff line change 1
1
describe ( 'Test that newsfeed API endpoint' , ( ) => {
2
+ afterEach ( ( ) => cy . task ( 'queryDB' , "DELETE FROM #__newsfeeds where name LIKE 'automated test feed'" ) ) ;
2
3
[ 'joomla.org' ] . forEach ( ( file ) => {
3
4
it ( `can deliver a list of feeds from ${ file } ` , ( ) => {
4
5
cy . db_createNewsFeed ( { name : 'automated test feed' , link : `${ Cypress . config ( 'baseUrl' ) } /tests/System/data/com_newsfeeds/${ file } .xml` } )
You can’t perform that action at this time.
0 commit comments