зеркало из https://github.com/electron/electron.git
test: remove hardcoded url (#41706)
This commit is contained in:
Родитель
c57ce31e84
Коммит
c82ec0c72b
|
@ -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 () => {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче