Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: remove hardcoded url
  • Loading branch information
alicelovescake committed Apr 4, 2024
commit 2bc7b2e6fead7141ddef2f6e3e8ca93a2f3f2b5c
6 changes: 2 additions & 4 deletions 6 spec/api-web-contents-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,8 @@ describe('webContents module', () => {

describe('navigationHistory.getActiveIndex() API', () => {
it('should return valid active index after a single page visit', async () => {
await w.loadURL('https://www.google.com');
w.webContents.on('did-finish-load', async () => {
expect(w.webContents.navigationHistory.getActiveIndex()).to.equal(0);
});
await w.loadURL(urlPage1);
expect(w.webContents.navigationHistory.getActiveIndex()).to.equal(0);
});

it('should return valid active index after a multiple page visits', async () => {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.