Skip to content

Commit

Permalink
fix: duplicated navigation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Oct 25, 2024
1 parent 1fb6d31 commit f0e6006
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion page-objects/layout/detailLayoutPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default abstract class DetailLayoutPage<T, L extends ListLayoutPage<T>> e
protected activeTabSelector = '.nav-tabs .el-menu-item.is-active';

async navigate(rowIndex?: number) {
await super.navigate();
await this.listPage.navigate();
await this.listPage.navigateToDetail(rowIndex || 0);
await this.waitForPageLoad();
Expand Down
2 changes: 1 addition & 1 deletion page-objects/layout/normalLayoutPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default abstract class NormalLayoutPage extends BaseLayoutPage {
protected edition = '.sidebar .logo-sub-title .logo-sub-title-block:nth-child(1)';

async navigate() {
await this.page.goto('/'); // Navigate to the base URL
await this.page.goto('/', { waitUntil: 'domcontentloaded' }); // Navigate to the base URL
const isLoggedIn = await this.checkLoginStatus();
if (!isLoggedIn) {
await this.performLogin();
Expand Down

0 comments on commit f0e6006

Please sign in to comment.