Skip to content

Commit 707a83d

Browse files
authored
Merge pull request #9450 from jrafanie/cypress-fixes2
Cypress fixes 2 - fix test text assertions to match prior code changes
2 parents 1bd9f0f + 1882cc0 commit 707a83d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cypress/e2e/ui/menu.cy.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,11 @@ describe('Menu', () => {
339339
});
340340

341341
it('Templates', () => {
342-
cy.menu('Automation', 'Automation', 'Templates').expect_show_list_title('Templates (Ansible Tower)');
342+
cy.menu('Automation', 'Automation', 'Templates').expect_show_list_title('Templates');
343343
});
344344

345345
it('Jobs', () => {
346-
cy.menu('Automation', 'Automation', 'Jobs').expect_show_list_title('Ansible Tower Jobs');
346+
cy.menu('Automation', 'Automation', 'Jobs').expect_show_list_title('Automation Jobs');
347347
});
348348
});
349349

@@ -381,7 +381,9 @@ describe('Menu', () => {
381381
});
382382

383383
it('Simulation', () => {
384-
cy.menu('Automation', 'Embedded Automate', 'Simulation').expect_explorer_title('Simulation');
384+
// TODO: change the simulation page to use the correct class so we can use explorer_title_text or expect_show_list_title
385+
cy.menu('Automation', 'Embedded Automate', 'Simulation');
386+
cy.get('div.simulation-title-text').contains('Simulation');
385387
});
386388

387389
it('Generic Objects', () => {

0 commit comments

Comments
 (0)