mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 21:46:37 +02:00
👷 Add e2e test to profile area
This commit is contained in:
parent
bc2a0432b9
commit
f185836fd4
31 changed files with 412 additions and 206 deletions
12
frontend/cypress/support/utils.js
Normal file
12
frontend/cypress/support/utils.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
export const checkOnboardingSlide = (number, checkSkip) => {
|
||||
cy.getBySel(`slide-${number}-title`).should("exist");
|
||||
if(checkSkip){cy.getBySel("skip-btn").should("exist");}
|
||||
cy.get(".onboarding .step-dots").should("exist");
|
||||
cy.getBySel(`slide-${number}-btn`).should("exist");
|
||||
cy.getBySel(`slide-${number}-btn`).click();
|
||||
};
|
||||
|
||||
export const goToSlideByNumber = (number) => {
|
||||
cy.get(`.step-dots li:nth-child(${number})`).click();
|
||||
cy.getBySel(`slide-${number -1}-btn`).should("exist");
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue