Fix test for creating app (#2439)
This commit is contained in:
parent
7a20c12d22
commit
4b46b4891c
4 changed files with 8 additions and 1 deletions
|
@ -98,6 +98,8 @@ describe("As a staff user I want to manage apps", () => {
|
|||
const randomAppName = `${startsWith}${faker.datatype.number()}`;
|
||||
|
||||
cy.visit(urlList.apps)
|
||||
.get(APPS_LIST.webhookAndEventsTab)
|
||||
.click()
|
||||
.get(APPS_LIST.createLocalAppButton)
|
||||
.click()
|
||||
.get(APP_DETAILS.nameInput)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
export const APPS_LIST = {
|
||||
createLocalAppButton: '[data-test-id="create-app"]'
|
||||
createLocalAppButton: '[data-test-id="create-app"]',
|
||||
webhookAndEventsTab: '[id="WEBHOOKS_AND_EVENTS"]',
|
||||
};
|
||||
|
|
|
@ -27,6 +27,7 @@ export const AppPageTabs = ({ showSaleorApps, ...props }: AvailableProps) => {
|
|||
/>
|
||||
<PageTab
|
||||
value="WEBHOOKS_AND_EVENTS"
|
||||
id="WEBHOOKS_AND_EVENTS"
|
||||
label={intl.formatMessage({
|
||||
defaultMessage: "Webhooks & Events",
|
||||
id: "UxTSw7",
|
||||
|
|
|
@ -25036,6 +25036,7 @@ exports[`Storyshots Views / Apps / Apps list default 1`] = `
|
|||
<button
|
||||
aria-selected="false"
|
||||
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
||||
id="WEBHOOKS_AND_EVENTS"
|
||||
role="tab"
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
|
@ -25547,6 +25548,7 @@ exports[`Storyshots Views / Apps / Apps list loading 1`] = `
|
|||
<button
|
||||
aria-selected="false"
|
||||
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
||||
id="WEBHOOKS_AND_EVENTS"
|
||||
role="tab"
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
|
@ -25689,6 +25691,7 @@ exports[`Storyshots Views / Apps / Apps list no data 1`] = `
|
|||
<button
|
||||
aria-selected="false"
|
||||
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
||||
id="WEBHOOKS_AND_EVENTS"
|
||||
role="tab"
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
|
|
Loading…
Reference in a new issue