Bug 1611334 - Remove View Tests button from PushHeader (#6096)

This commit is contained in:
Cameron Dawson 2020-03-04 10:55:12 -08:00 коммит произвёл GitHub
Родитель 2562f9d8dd
Коммит b8982a1f9a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 3 добавлений и 12 удалений

Просмотреть файл

@ -116,21 +116,21 @@ describe('Filtering', () => {
});
test('should have 1 push', async () => {
const { getAllByText, getByTestId } = render(<App />);
const { getAllByText, getAllByTestId, getByTestId } = render(<App />);
// wait till the ``reviewbot`` authored push is shown before filtering.
await waitForElement(() => getAllByText('reviewbot'));
setUrlParam('author', 'reviewbot');
await waitForElementToBeRemoved(() => getByTestId('push-511138'));
const filteredPushes = await waitForElement(() =>
getAllByText('View Tests'),
getAllByTestId('push-header'),
);
expect(filteredPushes).toHaveLength(1);
setUrlParam('author', null);
await waitForElement(() => getAllByText('jarilvalenciano@gmail.com'));
const unFilteredPushes = await waitForElement(() =>
getAllByText('View Tests'),
getAllByTestId('push-header'),
);
expect(unFilteredPushes).toHaveLength(10);
});

Просмотреть файл

@ -346,15 +346,6 @@ class PushHeader extends React.Component {
{watchStateLabel}
</button>
)}
<a
className="btn btn-sm btn-push test-view-btn"
href={`/testview.html?repo=${currentRepo.name}&revision=${revision}`}
target="_blank"
rel="noopener noreferrer"
title="DEPRECATED: Please use Push Health instead"
>
View Tests
</a>
{isLoggedIn && (
<button
type="button"