Skip to content

Commit 065ed24

Browse files
authored
[5.3][cypress] test console command site:up & site:down (#44683)
* site-up-&-down * cs * Rename SIteUpDown.cy.js to SiteUpDown.cy.js
1 parent b197ae4 commit 065ed24

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

cypress.config.dist.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default defineConfig({
1818
'tests/System/integration/site/**/*.cy.{js,jsx,ts,tsx}',
1919
'tests/System/integration/api/**/*.cy.{js,jsx,ts,tsx}',
2020
'tests/System/integration/plugins/**/*.cy.{js,jsx,ts,tsx}',
21+
'tests/System/integration/cli/**/*.cy.{js,jsx,ts,tsx}',
2122
],
2223
supportFile: 'tests/System/support/index.js',
2324
scrollBehavior: 'center',
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
describe('Test that console command site', () => {
2+
it('can set the site down', () => {
3+
cy.exec(`php ${Cypress.env('cmsPath')}/cli/joomla.php site:down`)
4+
.its('stdout')
5+
.should('contain', 'Website is now offline');
6+
});
7+
it('can set the site up', () => {
8+
cy.exec(`php ${Cypress.env('cmsPath')}/cli/joomla.php site:up`)
9+
.its('stdout')
10+
.should('contain', 'Website is now online');
11+
});
12+
});

0 commit comments

Comments
 (0)