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()}`;
|
const randomAppName = `${startsWith}${faker.datatype.number()}`;
|
||||||
|
|
||||||
cy.visit(urlList.apps)
|
cy.visit(urlList.apps)
|
||||||
|
.get(APPS_LIST.webhookAndEventsTab)
|
||||||
|
.click()
|
||||||
.get(APPS_LIST.createLocalAppButton)
|
.get(APPS_LIST.createLocalAppButton)
|
||||||
.click()
|
.click()
|
||||||
.get(APP_DETAILS.nameInput)
|
.get(APP_DETAILS.nameInput)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
export const APPS_LIST = {
|
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
|
<PageTab
|
||||||
value="WEBHOOKS_AND_EVENTS"
|
value="WEBHOOKS_AND_EVENTS"
|
||||||
|
id="WEBHOOKS_AND_EVENTS"
|
||||||
label={intl.formatMessage({
|
label={intl.formatMessage({
|
||||||
defaultMessage: "Webhooks & Events",
|
defaultMessage: "Webhooks & Events",
|
||||||
id: "UxTSw7",
|
id: "UxTSw7",
|
||||||
|
|
|
@ -25036,6 +25036,7 @@ exports[`Storyshots Views / Apps / Apps list default 1`] = `
|
||||||
<button
|
<button
|
||||||
aria-selected="false"
|
aria-selected="false"
|
||||||
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
||||||
|
id="WEBHOOKS_AND_EVENTS"
|
||||||
role="tab"
|
role="tab"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -25547,6 +25548,7 @@ exports[`Storyshots Views / Apps / Apps list loading 1`] = `
|
||||||
<button
|
<button
|
||||||
aria-selected="false"
|
aria-selected="false"
|
||||||
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
||||||
|
id="WEBHOOKS_AND_EVENTS"
|
||||||
role="tab"
|
role="tab"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -25689,6 +25691,7 @@ exports[`Storyshots Views / Apps / Apps list no data 1`] = `
|
||||||
<button
|
<button
|
||||||
aria-selected="false"
|
aria-selected="false"
|
||||||
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
class="MuiButtonBase-root-id MuiTab-root-id PageTab-tabRoot-id MuiTab-textColorInherit-id"
|
||||||
|
id="WEBHOOKS_AND_EVENTS"
|
||||||
role="tab"
|
role="tab"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
type="button"
|
type="button"
|
||||||
|
|
Loading…
Reference in a new issue