Skip to content

Commit

Permalink
fixes appTop test problem
Browse files Browse the repository at this point in the history
  • Loading branch information
j-paquette committed Feb 15, 2024
1 parent dfe0751 commit 0ba471b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/pageobjects/appTop.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class AppTopPage extends Page {
get langLinkIntranet() { return $('section.lang-no-search a'); }
get search() {return $('#wb-srch-q'); }
get menuLinks() {return $('div.nvbar'); }
get menuLink1() {return $('div.nvbar ul li:nth-child(1) a'); }
get menuLink2() {return $('div.nvbar ul li:nth-child(2) a'); }
get menuLink2Abbr() {return $('div.nvbar ul li:nth-child(2) abbr'); }
get menuLink3() {return $('div.nvbar ul li:nth-child(3) abbr'); }
get menuLink1() {return $('nav > div.nvbar ul li:nth-child(1) a[href="#"]'); }
get menuLink2() {return $('nav > div.nvbar ul li:nth-child(2) a[href="#"]'); }
get menuLink2Abbr() {return $('nav > div.nvbar ul li:nth-child(2) a[href="#"] abbr'); }
get menuLink3() {return $('nav > div.nvbar ul li:nth-child(3) a[href="#"] abbr'); }
get menuSubLink1() {return $('div.nvbar ul li:nth-child(1) ul li:nth-child(1) a'); }
get menuSubLink1Abbr() {return $('div.nvbar ul li:nth-child(1) ul li:nth-child(1) abbr'); }
get menuSubLink2() {return $('div.nvbar ul li:nth-child(3) ul li:nth-child(1) abbr'); }
Expand Down
2 changes: 1 addition & 1 deletion test/specs/appTop.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ async function menuExistsUsingPath(theme, lang){

async function menuDoesNotExist(theme, lang){
await basicPage.open(theme, lang, 'app');
await expect(appTopPage.menuLinks1).not.toExist();
await expect(appTopPage.menuLink1).not.toExist();
}

async function breadcrumbsExist(theme){
Expand Down

0 comments on commit 0ba471b

Please sign in to comment.