test: course creation flow

This commit is contained in:
Jannat Patel
2023-04-03 15:19:54 +05:30
parent 690a86bb69
commit 92a8ce6ef4
6 changed files with 218 additions and 7 deletions

View File

@@ -42,6 +42,10 @@ Cypress.Commands.add("button", (text) => {
return cy.get(`button:contains("${text}")`);
});
Cypress.Commands.add("link", (text) => {
return cy.get(`a:contains("${text}")`);
});
Cypress.Commands.add("iconButton", (text) => {
return cy.get(`button[aria-label="${text}"]`);
});