Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
test: Fix failing cypress tests (quick & dirty)
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsTheGlidingSquirrel committed Feb 20, 2024
1 parent 32638ae commit 4fc2087
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
17 changes: 3 additions & 14 deletions cypress/e2e/editor.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,6 @@
// cy.wait(6000)
// expectSavedVersionWithComment(null)
// })

// it('The editor does not save automatically when there are no changes', () => {
// openSerloEditorWithLTI()

// expectEditorOpenedSuccessfully()

// // Wait 8 seconds -> Autosave is set to be done all 5 seconds
// cy.wait(8000)
// cy.task('getSavedVersionsInEdusharing').then((savedVersions) => {
// expect(savedVersions).to.be.an('array').that.has.lengthOf(0)
// })
// })
// })

// it('Saved versions can be opened again', () => {
Expand Down Expand Up @@ -126,13 +114,14 @@

// embedEdusharingAsset()

// cy.contains('Inhalt von edu-sharing')
// cy.get('img[title="Testbild"]').should('be.visible')
// // cy.contains('Inhalt von edu-sharing')
// })

// function embedEdusharingAsset() {
// cy.get('.add-trigger').eq(1).click()
// cy.contains('Edu-sharing Inhalt').click()
// cy.get('[data-testid="edusharing-plugin-button"]:first').click()
// cy.get('[data-qa="plugin-edusharing-select-content-button"]:first').click()
// // TODO: Find a way around this wait
// cy.wait(6000)
// }
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/plugins/edusharing-asset/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function EdusharingAssetEditor({
<button
onClick={() => setModalIsOpen(true)}
className="mr-2 rounded-md border border-gray-500 px-1 text-sm transition-all hover:bg-editor-primary-200 focus-visible:bg-editor-primary-200"
data-qa="plugin-edusharing-bigger-button"
data-qa="plugin-edusharing-select-content-button"
>
Inhalt wählen
</button>
Expand All @@ -89,7 +89,7 @@ export function EdusharingAssetEditor({
}
}}
className="mr-2 rounded-md border border-gray-500 px-1 text-sm transition-all hover:bg-editor-primary-200 focus-visible:bg-editor-primary-200"
data-qa="plugin-edusharing-bigger-button"
data-qa="plugin-edusharing-change-size-button"
>
Größe verändern
</button>
Expand Down

0 comments on commit 4fc2087

Please sign in to comment.