Skip to content

Commit

Permalink
Merge branch 'development' of github.com:tutors-sdk/tutors into devel…
Browse files Browse the repository at this point in the history
…opment
  • Loading branch information
edeleastar committed Sep 8, 2023
2 parents 20f3f00 + 5c930b7 commit 7d44317
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions app/cypress/e2e/tutorsReader.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ describe("Tutors Reader: Loading the JSON fixture", function () {
cy.processCompanionsAndWallsLinks(course);
});

// it("Testing search feature", function () {
// cy.partialSearchVerification(course.los);
// });
it("Testing search feature", function () {
cy.partialSearchVerification(course.los);
});

it("Topics", function () {
course.los.forEach((topic: any) => {
Expand Down
6 changes: 2 additions & 4 deletions app/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Cypress.Commands.add("triggerCardAction", (lo: any) => {
cy.findByText(text).then(($element) => {
// Perform actions on the found element if needed
cy.wrap($element).should('exist');
cy.wrap($element).click( {force : true} )
cy.wrap($element).click({ force: true })
});
cy.wait(500);
}
Expand Down Expand Up @@ -141,7 +141,7 @@ Cypress.Commands.add("partialSearchVerification", (searchWord: string) => {
cy.get('div.h-full.overflow-hidden.contents', { timeout: 10000 }).invoke('css', 'overflow', 'visible');
cy.get('a.btn.btn-sm', { timeout: 10000 }).eq(0).click({ force: true });
cy.get('input#search', { timeout: 10000 }).eq(0).type("lab");
cy.get('.s-1juWPqSteKNM', { timeout: 10000 }).find('a')
cy.get('div.pt-4.text-right.text-sm a', { timeout: 10000 })
.each((link) => {
//const links = els.toArray();
let href = link.attr('href');
Expand All @@ -165,9 +165,7 @@ Cypress.Commands.add("partialSearchVerification", (searchWord: string) => {
if (countOfMatches === 0) {
throw error
}

})

});

Cypress.Commands.add("verifyContentsExists", (lo: any) => {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"cy-verify-downloads": "0.1.16",
"cypress": "13.1.0",
"cypress": "^13.1.0",
"cypress-fail-fast": "7.0.3",
"eslint": "^8.30.0",
"eslint-config-custom": "*",
Expand Down

0 comments on commit 7d44317

Please sign in to comment.