Merge branch 'main' into 3.99
This commit is contained in:
@@ -606,7 +606,7 @@ describe('HtmlReporter', function() {
|
||||
var suiteDetail = outerSuite.childNodes[0];
|
||||
var suiteLink = suiteDetail.childNodes[0];
|
||||
expect(suiteLink.innerHTML).toEqual('A Suite');
|
||||
expect(suiteLink.getAttribute('href')).toEqual('?foo=bar&spec=A Suite');
|
||||
expect(suiteLink.getAttribute('href')).toEqual('/?foo=bar&spec=A Suite');
|
||||
|
||||
var specs = outerSuite.childNodes[1];
|
||||
var spec = specs.childNodes[0];
|
||||
@@ -616,7 +616,7 @@ describe('HtmlReporter', function() {
|
||||
var specLink = spec.childNodes[0];
|
||||
expect(specLink.innerHTML).toEqual('with a spec');
|
||||
expect(specLink.getAttribute('href')).toEqual(
|
||||
'?foo=bar&spec=A Suite with a spec'
|
||||
'/?foo=bar&spec=A Suite with a spec'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -924,7 +924,7 @@ describe('HtmlReporter', function() {
|
||||
var throwingExpectationsUI = container.querySelector('.jasmine-throw');
|
||||
throwingExpectationsUI.click();
|
||||
|
||||
expect(navigateHandler).toHaveBeenCalledWith('throwFailures', true);
|
||||
expect(navigateHandler).toHaveBeenCalledWith('oneFailurePerSpec', true);
|
||||
});
|
||||
|
||||
it('should navigate and change the setting to off', function() {
|
||||
@@ -953,7 +953,10 @@ describe('HtmlReporter', function() {
|
||||
var throwingExpectationsUI = container.querySelector('.jasmine-throw');
|
||||
throwingExpectationsUI.click();
|
||||
|
||||
expect(navigateHandler).toHaveBeenCalledWith('throwFailures', false);
|
||||
expect(navigateHandler).toHaveBeenCalledWith(
|
||||
'oneFailurePerSpec',
|
||||
false
|
||||
);
|
||||
});
|
||||
});
|
||||
describe('UI for hiding disabled specs', function() {
|
||||
@@ -1169,7 +1172,7 @@ describe('HtmlReporter', function() {
|
||||
var seedBar = container.querySelector('.jasmine-seed-bar');
|
||||
expect(seedBar.textContent).toBe(', randomized with seed 424242');
|
||||
var seedLink = container.querySelector('.jasmine-seed-bar a');
|
||||
expect(seedLink.getAttribute('href')).toBe('?seed=424242');
|
||||
expect(seedLink.getAttribute('href')).toBe('/?seed=424242');
|
||||
});
|
||||
|
||||
it('should not show the current seed bar if not randomizing', function() {
|
||||
@@ -1218,7 +1221,7 @@ describe('HtmlReporter', function() {
|
||||
reporter.jasmineDone({ order: { random: true } });
|
||||
|
||||
var skippedLink = container.querySelector('.jasmine-skipped a');
|
||||
expect(skippedLink.getAttribute('href')).toEqual('?foo=bar&spec=');
|
||||
expect(skippedLink.getAttribute('href')).toEqual('/?foo=bar&spec=');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user