test: remove hardcoded url (#41706)
This commit is contained in:
parent
c57ce31e84
commit
c82ec0c72b
1 changed files with 2 additions and 4 deletions
|
@ -580,10 +580,8 @@ describe('webContents module', () => {
|
||||||
|
|
||||||
describe('navigationHistory.getActiveIndex() API', () => {
|
describe('navigationHistory.getActiveIndex() API', () => {
|
||||||
it('should return valid active index after a single page visit', async () => {
|
it('should return valid active index after a single page visit', async () => {
|
||||||
await w.loadURL('https://www.google.com');
|
await w.loadURL(urlPage1);
|
||||||
w.webContents.on('did-finish-load', async () => {
|
expect(w.webContents.navigationHistory.getActiveIndex()).to.equal(0);
|
||||||
expect(w.webContents.navigationHistory.getActiveIndex()).to.equal(0);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return valid active index after a multiple page visits', async () => {
|
it('should return valid active index after a multiple page visits', async () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue