Skip to content

Commit

Permalink
removing test that checks if copy button shows
Browse files Browse the repository at this point in the history
  • Loading branch information
evie-8 committed Oct 11, 2024
1 parent f2d0127 commit c89983b
Show file tree
Hide file tree
Showing 3 changed files with 2,602 additions and 2,108 deletions.
10 changes: 1 addition & 9 deletions cypress/e2e/auto-detection.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@ describe("Auto Detection of Language", () => {
testCases.forEach(({ text, expectedLanguage }) => {
// Step 1: Enter text into the textarea
cy.get('textarea[placeholder="Enter text"]').clear().type(text);

cy.wait(6000);
if (expectedLanguage === "language not detected") {
cy.get('[data-testid="feedback-button"]').should("not.exist");
cy.get('[data-testid="copy-container"]').should("not.exist");
} else {
cy.get('[data-testid="feedback-button"]').should("exist");
cy.get('[data-testid="copy-container"]').should("exist");
}
cy.wait(4000)
// Step 2: Verify the detected language
cy.get('[data-testid="detected-language"]')
.invoke("text")
Expand Down
Loading

0 comments on commit c89983b

Please sign in to comment.