-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from mollie/feature/MOL-446
MOL-446/MOL-509: add Icon tab for controlling image url
- Loading branch information
Showing
25 changed files
with
208 additions
and
983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/// <reference types="cypress" /> | ||
/// <reference types="@testing-library/cypress" /> | ||
/// <reference types="@commercetools-frontend/cypress" /> | ||
|
||
import { | ||
entryPointUriPath, | ||
APPLICATION_BASE_ROUTE, | ||
} from '../support/constants'; | ||
|
||
beforeEach(() => { | ||
cy.loginToMerchantCenter({ | ||
entryPointUriPath, | ||
initialRoute: APPLICATION_BASE_ROUTE, | ||
}); | ||
|
||
cy.fixture('forward-to').then((response) => { | ||
cy.intercept('GET', '/proxy/forward-to', { | ||
statusCode: 200, | ||
body: response, | ||
}); | ||
}); | ||
}); | ||
|
||
describe('Test method details - Icon tab', () => { | ||
it('should be fully functional', () => { | ||
const paymentMethod = 'PayPal'; | ||
|
||
cy.findByText(paymentMethod).click(); | ||
|
||
cy.findByRole('tab', { name: 'Icon' }).click(); | ||
cy.url().should('contain', 'icon'); | ||
|
||
cy.findByTestId('image-url-input').should('be.visible'); | ||
cy.findByTestId('image-preview').should('be.visible'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 0 additions & 108 deletions
108
application/src/components/channel-details/channel-details-form.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.