Skip to content

Commit 95caf82

Browse files
committed
Fix the examples
Something recently change on duckduckgo.com and there are now multiple input elements, some hidden.
1 parent dcd5022 commit 95caf82

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

examples/browserify-cjs/cypress/e2e/duckduckgo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

examples/browserify-esm/cypress/e2e/duckduckgo.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

examples/browserify-ts/cypress/e2e/duckduckgo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

examples/esbuild-cjs/cypress/e2e/duckduckgo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

examples/esbuild-esm/cypress/e2e/duckduckgo.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

examples/esbuild-ts/cypress/e2e/duckduckgo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

examples/webpack-cjs/cypress/e2e/duckduckgo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

examples/webpack-esm/cypress/e2e/duckduckgo.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

examples/webpack-ts/cypress/e2e/duckduckgo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When("I visit duckduckgo.com", () => {
55
});
66

77
Then("I should see a search bar", () => {
8-
cy.get("input").should(
8+
cy.get("input[type=text]").should(
99
"have.attr",
1010
"placeholder",
1111
"Search the web without being tracked"

0 commit comments

Comments
 (0)