test: remove hardcoded url (#41706)

This commit is contained in:
Alice Zhao 2024-03-27 02:53:02 -07:00 committed by GitHub
parent c57ce31e84
commit c82ec0c72b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 () => {