Add datagrid support in vouchers e2e tests (#4054)
This commit is contained in:
parent
9037c9cfd1
commit
440f5e6674
3 changed files with 12 additions and 11 deletions
5
.changeset/sour-carpets-collect.md
Normal file
5
.changeset/sour-carpets-collect.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"saleor-dashboard": minor
|
||||
---
|
||||
|
||||
Add datagrid support in vouchers e2e tests
|
|
@ -10,11 +10,9 @@ import {
|
|||
addPayment,
|
||||
createCheckoutWithVoucher,
|
||||
} from "../../../support/api/utils/ordersUtils";
|
||||
import * as productsUtils
|
||||
from "../../../support/api/utils/products/productsUtils";
|
||||
import {
|
||||
updateTaxConfigurationForChannel,
|
||||
} from "../../../support/api/utils/taxesUtils";
|
||||
import * as productsUtils from "../../../support/api/utils/products/productsUtils";
|
||||
import { updateTaxConfigurationForChannel } from "../../../support/api/utils/taxesUtils";
|
||||
import { ensureCanvasStatic } from "../../../support/customCommands/sharedElementsOperations/canvas";
|
||||
import {
|
||||
createVoucher,
|
||||
discountOptions,
|
||||
|
@ -166,7 +164,7 @@ describe("As an admin I want to create voucher", () => {
|
|||
const voucherCode = `${startsWith}${faker.datatype.number()}`;
|
||||
|
||||
cy.clearSessionData().loginUserViaRequest().visit(urlList.vouchers);
|
||||
cy.expectSkeletonIsVisible();
|
||||
ensureCanvasStatic();
|
||||
createChannel({ name }).then(channel => {
|
||||
createdChannel = channel;
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
import { VOUCHERS_SELECTORS } from "../../../elements/discounts/vouchers";
|
||||
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
||||
import {
|
||||
urlList,
|
||||
voucherDetailsUrl,
|
||||
} from "../../../fixtures/urlList";
|
||||
import { urlList, voucherDetailsUrl } from "../../../fixtures/urlList";
|
||||
import { ONE_PERMISSION_USERS } from "../../../fixtures/users";
|
||||
import { ensureCanvasStatic } from "../../../support/customCommands/sharedElementsOperations/canvas";
|
||||
import { createCheckoutWithVoucher } from "../../api/utils/ordersUtils";
|
||||
import { selectChannelInDetailsPages } from "../channelsPage";
|
||||
|
||||
|
@ -103,7 +101,7 @@ export function loginAndCreateCheckoutForVoucherWithDiscount({
|
|||
cy.clearSessionData()
|
||||
.loginUserViaRequest("auth", ONE_PERMISSION_USERS.discount)
|
||||
.visit(urlList.vouchers);
|
||||
cy.expectSkeletonIsVisible();
|
||||
ensureCanvasStatic();
|
||||
createVoucher({
|
||||
voucherCode,
|
||||
voucherValue,
|
||||
|
|
Loading…
Reference in a new issue