-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors #4855
base: master
Are you sure you want to change the base?
Errors #4855
Changes from all commits
9e1412f
2dab9a7
27b8cf5
e61149d
b65773d
83bec88
2210c78
1d3f090
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm test | ||
- name: Upload HTML report(backstop data) | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: report | ||
path: backstop_data |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
"httpOnly": false, | ||
"secure": false, | ||
"session": false, | ||
"sameSite": "no_restriction" | ||
"sameSite": "Lax" | ||
} | ||
] |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const products = [ | ||
{ | ||
imgSrc: 'images/imac.jpeg', | ||
altText: 'Apple iMac', | ||
title: 'APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)', | ||
code: '195434', | ||
reviews: 5, | ||
price: '$2,199', | ||
}, | ||
// Другие карточки | ||
]; | ||
|
||
const productContainer = document.getElementById('product-container'); | ||
|
||
products.forEach((product) => { | ||
const card = document.createElement('div'); | ||
card.className = 'card'; | ||
card.setAttribute('data-qa', 'card'); | ||
|
||
card.innerHTML = ` | ||
<img class="card__img" src="${product.imgSrc}" alt="${product.altText}" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding error handling or a default image in case |
||
<h2 class="card__title">${product.title}</h2> | ||
<p class="card__text-code">Product code: ${product.code}</p> | ||
<div class="card__review"> | ||
<div class="stars"> | ||
<span class="stars__star"></span> | ||
<span class="stars__star"></span> | ||
<span class="stars__star"></span> | ||
<span class="stars__star"></span> | ||
<span class="stars__star"></span> | ||
</div> | ||
<p class="card__text-review">Reviews: ${product.reviews}</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The number of stars displayed does not currently reflect the |
||
</div> | ||
<div class="card__price"> | ||
<p class="card__text-price">Price:</p> | ||
<p class="card__text-value">${product.price}</p> | ||
</div> | ||
<a href="#" class="card__button">Buy</a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 'Buy' button currently has a |
||
`; | ||
|
||
productContainer.appendChild(card); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that
postInteractionWait
is a positive integer to avoid unexpected behavior in thesetTimeout
function.