![Winnie Hellmann](/assets/img/avatar_default.png)
Remove .raw from JavaScript fixture file names
Closes #59201
See merge request gitlab-org/gitlab-ce!26430
(cherry picked from commit 79a45f7f02
)
23 lines
623 B
JavaScript
23 lines
623 B
JavaScript
import initReadMore from '~/read_more';
|
|
|
|
describe('Read more click-to-expand functionality', () => {
|
|
const fixtureName = 'projects/overview.html';
|
|
|
|
preloadFixtures(fixtureName);
|
|
|
|
beforeEach(() => {
|
|
loadFixtures(fixtureName);
|
|
});
|
|
|
|
describe('expands target element', () => {
|
|
it('adds "is-expanded" class to target element', () => {
|
|
const target = document.querySelector('.read-more-container');
|
|
const trigger = document.querySelector('.js-read-more-trigger');
|
|
initReadMore();
|
|
|
|
trigger.click();
|
|
|
|
expect(target.classList.contains('is-expanded')).toEqual(true);
|
|
});
|
|
});
|
|
});
|