Skip to content

Commit

Permalink
fix frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Jul 20, 2022
1 parent 1e1f172 commit ea4aa7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('Test datatable', () => {
});
it('Datapane loads view samples', () => {
cy.intercept(
'api/v1/explore/samples?force=false&datasource_type=table&datasource_id=*',
'datasource/samples?force=false&datasource_type=table&datasource_id=*',
).as('Samples');
cy.contains('Samples')
.click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { createSamplesPaneProps } from './fixture';

describe('SamplesPane', () => {
fetchMock.post(
'/api/v1/explore/samples?force=false&datasource_type=table&datasource_id=34',
'end:/datasource/samples?force=false&datasource_type=table&datasource_id=34',
{
result: {
data: [],
Expand All @@ -41,7 +41,7 @@ describe('SamplesPane', () => {
);

fetchMock.post(
'end:/api/v1/explore/samples?force=true&datasource_type=table&datasource_id=35',
'end:/datasource/samples?force=true&datasource_type=table&datasource_id=35',
{
result: {
data: [
Expand All @@ -55,7 +55,7 @@ describe('SamplesPane', () => {
);

fetchMock.post(
'end:/api/v1/explore/samples?force=false&datasource_type=table&datasource_id=36',
'end:/datasource/samples?force=false&datasource_type=table&datasource_id=36',
400,
);

Expand Down

0 comments on commit ea4aa7f

Please sign in to comment.