Skip to content

Commit

Permalink
[4.4] Cypress typos/grammar (#43853)
Browse files Browse the repository at this point in the history
* Update Actionlogs.cy.js

* Update Default.cy.js

* Update Default.cy.js

* Update Login.cy.js

* Update Consent.cy.js

* Update Actionlogs.cy.js

missed one
  • Loading branch information
brianteeman authored Sep 12, 2024
1 parent b326bda commit 88fbc2c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Test in backend that the action logs', () => {
cy.visit('/administrator/index.php?option=com_actionlogs&view=actionlogs');
});

it('have a title', () => {
it('has a title', () => {
cy.get('h1.page-title').should('contain.text', 'User Actions Log');
});

Expand All @@ -23,7 +23,7 @@ describe('Test in backend that the action logs', () => {
cy.task('queryDB', 'TRUNCATE #__action_logs');
});

it('have an export button', () => {
it('has an export button', () => {
cy.get('#toolbar-download1').click();
cy.get('#system-message-container').contains('There are no User Action logs to export').should('exist');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Test in backend that the cache', () => {
cy.visit('/administrator/index.php?option=com_cache&view=cache');
});

it('have a title', () => {
it('has a title', () => {
cy.get('h1.page-title').should('contain.text', 'Maintenance: Clear Cache');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Test in backend that the checkin', () => {
cy.get('p.lead').should('contain.text', 'There are no tables with checked out items');
});

it('can display a list of checked out', () => {
it('can display a list of checked out items', () => {
cy.db_createArticle({ title: 'Test article', checked_out: '1', checked_out_time: '2024-01-01 20:00:00' }).then(() => {
cy.visit('/administrator/index.php?option=com_checkin');
cy.get('tr.row0').should('contain.text', 'content');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Test in backend that the login component', () => {
cy.get('#system-message-container').contains('Username and password do not match or you do not have an account yet.').should('exist');
});

it('can not log in with not existing user', () => {
it('can not log in with non-existing user', () => {
cy.visit('administrator/index.php');
cy.get('#mod-login-username').type('invalid');
cy.get('#mod-login-password').type('invalid');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe('Test in backend that privacy consent component', () => {
describe('Test in backend that the privacy consent component', () => {
beforeEach(() => cy.doAdministratorLogin());
afterEach(() => {
cy.task('queryDB', 'DELETE FROM #__privacy_consents');
Expand Down

0 comments on commit 88fbc2c

Please sign in to comment.