Skip to content

Commit

Permalink
add greeting id for playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondk committed Feb 10, 2025
1 parent 76e6da9 commit dab4d22
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function App() {
return (
<main className="container">
<div className="card">
<h1>{greeting}</h1>
<h1 id="greeting">{greeting}</h1>
<form action="#" onSubmit={handleSubmit}>
<label htmlFor="name">Enter your name:</label>
<input type="text" id="name" required />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<main class="container">
<div class="card">
<h1>{greeting}</h1>
<h1 id="greeting">{greeting}</h1>
<form action="#" on:submit|preventDefault={onSubmit}>
<label for="name">Enter your name:</label>
<input type="text" id="name" required />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class App {
let body = html`
<main class="container">
<div class="card">
<h1>${this.greeting}</h1>
<h1 id="greeting">${this.greeting}</h1>
<form action="#">
<label for="name">Enter your name:</label>
<input type="text" id="name" required />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function handleSubmit(e) {
<template>
<main class="container">
<div class="card">
<h1>{{ greeting }}</h1>
<h1 id="greeting">{{ greeting }}</h1>

<form action="#" @submit="handleSubmit">
<label for="name">Enter your name:</label>
Expand Down

0 comments on commit dab4d22

Please sign in to comment.